'''
Created on Apr 25, 2012

@author: mshen
'''

import datetime

class Identity(object):

    def __init__(self, community = "default", user = "default"):
        self.fromCommunity = community
        self.fromUser = user

    def getCommunity(self):
        return self.fromCommunity

    def setCommunity(self, comm):
        self.fromCommunity = comm
        
    def setUser(self, user):
        self.fromUser = user
        
    def getUser(self):
        return self.fromUser
    
    def getDate(self):
        return self.date
    
    def setDate(self, date):
        self.date = str(date.now())